import {
	request,
	requestData
} from "../Promise.js"


export default {
	// 现场巡查-列表
	getList(data) {
		return request({
			url: '/data-inspection-study/hg-app/scene-patrol-task/page',
			method: 'post',
			data
		})
	},

	//现场巡查-新增
	getSupervisionSave(data) {
		return request({
			url: `/data-inspection-study/hg-app/scene-patrol-task/save`,
			method: 'post',
			data
		})
	},

	//现场巡查-编辑
	getSupervisionUpdate(data, index) {
		return request({
			url: `/data-inspection-study/hg-app/scene-patrol-task/update/${index}`,
			method: 'post',
			data
		})
	},


	//现场巡查-提交
	getSupervisionSubmit(data) {
		return request({
			url: '/data-inspection-study/hg-app/scene-patrol-task/submit',
			method: 'post',
			data
		})
	},

	//现场巡查-取消
	getSupervisionRemove(data) {
		return request({
			url: '/data-inspection-study/hg-app/scene-patrol-task/remove',
			method: 'post',
			data
		})
	},

	//现场巡查-归档
	getSupervisionArchive(data) {
		return request({
			url: '/data-inspection-study/hg-app/scene-patrol-task/archive',
			method: 'post',
			data
		})
	},

	//现场巡查-详情
	getSupervisionDetail(id) {
		return request({
			url: `/data-inspection-study/hg-app/scene-patrol-task/detail/${id}`,
			method: 'post',
		})
	},


	//现场巡查-通知下发 
	getSupervisionIssueNotice(data) {
		return request({
			url: '/data-inspection-study/hg-app/scene-patrol-task/inform_send',
			method: 'post',
			data
		})
	},

	//现场巡查-整改复核详情
	getRectification(id) {
		return request({
			url:`/data-inspection-study/insp_rectify_inform/queryByTaskId/06/${id}`,
			method: 'post',
		})
	},
	
	//现场巡查-整改复核
	getFeedbackReview(data) {
		return request({
			url:`/data-inspection-study/insp_rectify_review/rectify_review`,
			method: 'post',
			data
		})
	},
	
	
	//现场巡查-检查事项
	getCheckItems(data) {
		return request({
			url:`/data-inspection-study/hg-app/scene-patrol-task/item-list`,
			method: 'post',
			data
		})
	},

}
